package com.entity;

import java.sql.Date;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("usedrug")
public class UseDrug {
    private int prescriptionDetailId;
    private int drugId;
    private int quantity;
    private int dailyPrice;
    private Date startDate;
    private Date endDate;

    // 构造方法
    public UseDrug(int prescriptionDetailId, int drugId, int quantity, int dailyPrice, Date startDate, Date endDate) {
        this.prescriptionDetailId = prescriptionDetailId;
        this.drugId = drugId;
        this.quantity = quantity;
        this.dailyPrice = dailyPrice;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    // Getter和Setter方法
    public int getPrescriptionDetailId() {
        return prescriptionDetailId;
    }

    public void setPrescriptionDetailId(int prescriptionDetailId) {
        this.prescriptionDetailId = prescriptionDetailId;
    }

    public int getDrugId() {
        return drugId;
    }

    public void setDrugId(int drugId) {
        this.drugId = drugId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getDailyPrice() {
        return dailyPrice;
    }

    public void setDailyPrice(int dailyPrice) {
        this.dailyPrice = dailyPrice;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    // toString方法，可选，用于打印对象信息
    @Override
    public String toString() {
        return "UseDrug{" +
                "prescriptionDetailId=" + prescriptionDetailId +
                ", drugId=" + drugId +
                ", quantity=" + quantity +
                ", dailyPrice=" + dailyPrice +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                '}';
    }
}